package cn.sdhuijin.vms.service;

import java.util.Date;
import java.util.List;

import org.springframework.data.domain.Page;

import cn.sdhuijin.vms.model.Car;
import cn.sdhuijin.vms.model.CarRecord;
import cn.sdhuijin.vms.model.Organization;
import cn.sdhuijin.vms.model.Person;
import cn.sdhuijin.vms.model.PersonRecord;

public interface IRecordService {
	public Boolean addIn(Person person, Organization org, Date date);

	public Boolean addOut(Person person, Organization org, Date date);

	public Boolean addIn(Car car, Organization org, Date date);

	public Boolean addOut(Car car, Organization org, Date date);

	public Page<PersonRecord> getPersonRecordList(Integer page, Integer rows);

	public Page<PersonRecord> getPersonRecordListByDateAndName(Integer page,
			Integer rows, Date startTime, Date endTime, String name,
			String orgId);

	public List<PersonRecord> getPersonRecordListByDateAndName(Date startTime,
			Date endTime, String name, String orgId);

	public Page<CarRecord> getCarRecordList(Integer page, Integer rows);

	public Page<CarRecord> getCarRecordListByDateAndLicense(Integer page,
			Integer rows, Date startTime, Date endTime, String license,
			String orgId);

	public List<CarRecord> getCarRecordListByDateAndLicense(Date startTime,
			Date endTime, String license, String orgId);

}
